package b;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {


        ArrayList<Student> list = new ArrayList<Student>();

        Student s1 = new Student("zhangsan", 12, "男");
        Student s2 = new Student("lisi", 19, "男");
        Student s3 = new Student("wangwu", 23, "男");

        list.add(s1);
        list.add(s2);
        list.add(s3);

        int getmaxage = StudentUtil.getmaxage(list);
        System.out.println(getmaxage);

    }

}
